package org.linuxsogood.boot.misc;

import java.util.Optional;

/**
 * @author honway.liu
 * @date 2019-07-04 12:39
 * @email gm100861@gmail.com
 * @blog http://linuxsogood.org
 */
public class OptionalTest {

    public static void main(String[] args) {
        Optional<Object> o = Optional.of("a");
        o = Optional.empty();
        o.ifPresent(System.out::println);
    }
}
